<?php
use yii\helpers\Html;
use yii\widgets\Breadcrumbs;
use frontend\assets\AppAsset;
use yii\widgets\LinkPager;
use mobile\controllers\ListController;
use common\models\articles\Articles;
use common\models\member\Member;
use common\models\category\Category;
use common\models\Fenhuigrade\Fenhuigrade;


?>
<style type="text/css">
    .swiper-button-next, .swiper-button-prev{
            -moz-background-size: 0.25rem 0.33rem;
           -webkit-background-size: 0.25rem 0.33rem;
            background-size: 0.25rem 0.33rem;
        }
        .sear .swiper-button-prev, .sear .swiper-container-rtl .swiper-button-next{
        
        }
        .sear .swiper-button-next, .sear .swiper-container-rtl .swiper-button-prev{
           
        }
</style>
<!--sear-->
<div class="sear">
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <?php foreach($child as $ct){ ?>
                <div class="swiper-slide <?php if($cat['id'] == $ct['id']){ ?> seactive <?php } ?>">
			<?php if(!empty($ct['url'])){ ?>	
				<a href="<?= $ct['url']?>">
			<?php }else{ ?>	
			<a href="<?= yii\helpers\Url::to([$ct['type'],'id'=>$ct['id'],'z_nav'=>0]);?>">
			<?php } ?>
				<?=$ct['name'];?></a></div>

            <?php } ?>
        </div>
        <div class="swiper-button-prev swiper-button-black"></div>
        <div class="swiper-button-next swiper-button-black"></div>
    </div>
    <script>
        var swiper = new Swiper('.sear .swiper-container', {
            freeMode : true,
            slidesPerView : 'auto',
            prevButton:'.sear .swiper-button-prev',
            nextButton:'.sear .swiper-button-next'
        });
    </script>
</div>
<div class="clearFloat bag-fff">
    <div class="sewz m-l-35 m-r-35">
        <a href="<?= yii\helpers\Url::to(['/']);?>">HOME</a> - <a> <?= $cat['name']; ?></a>
    </div>
</div>
<!--位置-->
<div class="selist bag-fff">
    <div class="m-l-35 m-r-35">
        <h3 class="nyh3">
            <?=$article['title'];?>
        </h3>
        <div class="clearFloat nywzp">
            <?= $article['content'];?>

            <br><br>
        </div>
    </div>
</div>
<!--相关新闻-->
<!--
<div class="clearFloat bag-fff m-t-27 m-b-27">
    <div class="m-l-35 m-r-35 p-t-30">
        <h3 class="xgxwh3"><span>相关新闻</span></h3>
        <div class="clearFloat p-t-30 p-b-40">
            <?php foreach($articles as $k=>$t){ ?>
            <div class="selista">
                <a href="<?= yii\helpers\Url::to([$cat['ctype'], 'id' => $t['id'],'z_nav'=>0]); ?>">
                    <div class="selistb">
                        <?=$t['title'];?>
                    </div>
                </a>
            </div>
        <?php } ?>
        </div>
    </div>
</div>
-->
    <!--相关新闻-->
    <!--列表-->
    <!--搜索-->

